package extend;

public class Child extends Parent {
    public Child() {
        System.out.println("调用子类构造方法");
    }

    {
        System.out.println("子类代码块");
    }

    static {
        System.out.println("子类静态代码块");
    }

    public Child(String name) {
//        super("猫");
        System.out.println(name + "叫!!!");
    }

    public static void main(String[] args) {
        Child child = new Child();
    }
}
